package problem.solution.case04;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class AspectSolution04 {


    @Pointcut("execution(* problem.solution.case04.ASolution04.*(..))")
    public void aspect() {
        System.out.println("AspectSolution01");
    }

    @Before("aspect()")
    public void before() {
        System.out.println("获取代理类,此方法调用2次");
    }
}
